Installation Linux
Note to the OOM killer:
When a Linux machine runs low on memory the kernel will begin killing processes to free up RAM. This is called the OOM Killer. OOM stands for out of memory. Unfortunately, the Linux kernel OOM killer often kills important processes.
Indications that this has happened appear in /var/log/messages:
Out of Memory: Killed process [PID] [process name].
So it is possible, that the OOM killer kills the Tomcat process or perhaps the database when running on the same machine!
Note to TCP tuning:
Set Socket Timeout to 10 seconds:
sysctl -w net.ipv4.tcp_fin_timeout=10
TCP_FIN_TIMEOUT — This setting determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. During this TIME_WAIT state, reopening the connection to the client costs less than establishing a new connection. By reducing the value of this entry, TCP/IP can release closed connections faster, making more resources available for new connections.